

const {Sequelize} = require('sequelize')


const sequelize = new Sequelize('demo1','postgres','123456',{
    host:'xujp.top',
    dialect:'postgres'
})

sequelize.authenticate().then(()=>{
    try {
        console.log('连接成功')
    } catch (error) {
        console.log('连接失败')
    }
})
